﻿using System;
using System.Net.NetworkInformation;

namespace SUT
{
    public class Node : INode
    {
        public Boolean GetIPStatus(string address)
        {
            try
            {
                Ping ping = new Ping();
                return ping.Send(address).Status == IPStatus.Success;
            }
            catch (Exception e)
            {
                throw new ApplicationException("Ip non valido", e);
            }
        }
    }
}